import { defineConfig } from "vitepress";

// https://vitepress.dev/reference/site-config
export default defineConfig({
  outDir: 'dist',
  title: "Cirno-API-Docs",
  head: [["link", { rel: "icon", href: "favicon.ico" }]],
  description: "Cirno-API接口文档",
  appearance: false,
  themeConfig: {
    search: {
      provider: "local"
    },
    outline: {
      label: "在此页面上",
    },
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: "主页", link: "/" },
      { text: "快速上手", link: "markdown/get-started" },
    ],
    sidebar: [
      {
        text: "文档",
        items: [
          { text: "快速上手", link: "markdown/get-started" },
          {
            text: "基础传输",
            items: [
              {
                text: "请求说明",
                items: [
                  { text: "请求头", link: "markdown/request-header" },
                  { text: "请求参数", link: "markdown/request-params" },
                ],
              },
              {
                text: "响应说明",
                items: [
                  { text: "响应内容", link: "markdown/response-content" },
                  { text: "状态码", link: "markdown/status-code" },
                ],
              },
            ],
          },
          {
            text: "使用API",
            items: [
              { text: "在线代码执行器", link: "markdown/code-executor" },
              { text: "中国地理服务", link: "markdown/china-geo" },
              { text: "P站搜索器", link: "markdown/pixiv-search" },
              { text: "E站搜索器", link: "markdown/ehentai-search" },
    
            ],
          },
        ],
      },
    ],

    footer: {
      message:
        '<a href="https://beian.miit.gov.cn/#/Integrated/recordQuery">蜀ICP备2024106959号-1</a>',
      copyright: "MIT 许可证 | 版权所有 © 2024 Cirno-API",
    },
    socialLinks: [
      { icon: "github", link: "https://github.com/FlanChanXwO" },
      { icon: "gitee", link: "https://gitee.com/flanchanowo" },
    ],
    // 文章翻页
    docFooter: {
      prev: "上一篇",
      next: "下一篇",
    },
    returnToTopLabel: "返回顶部",
    sidebarMenuLabel: "菜单",
  },
});
